package io.renren.modules.task.entity;

import io.renren.modules.task.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * @Author: 蔡翔
 * @Date: 2019/7/8 10:03
 * @Version 1.0
 */
@Data
public class testUser {
            //2.
    private String userName;
    @NotNull
    @Length(min=6)
    private String passWord;

    @Email
    private String email;

    @IsMobile
    private String phone;
}
